<!DOCTYPE html>
<html lang="{{ app()->getLocale() }}">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- CSRF Token -->
    <meta name="csrf-token" content="{{ csrf_token() }}">

    <title>{{ config('app.name', 'Laravel') }}</title>

    <!-- Styles -->
    <link href="{{ asset('css/app.css') }}" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/font-awesome/5.13.1/css/all.min.css"  crossorigin="anonymous">
</head>
<body>
    <div id="app">
        <el-container>
            <el-header>
                <el-row>
                    <el-col>
                        <main-navbar :user='@json(Auth::user())'></main-navbar>
                    </el-col>
                </el-row>
            </el-header>
        </el-container>
        <el-container>
            @yield('content')
        </el-container>
        <el-container>
            <el-footer></el-footer>
        </el-container>
    </div>

    <!-- Scripts -->
    <script src="https://cdn.bootcss.com/lodash.js/4.17.5/lodash.js"></script>
    <script src="https://cdn.bootcss.com/vue/2.5.16/vue.js"></script>
    <script src="https://cdn.bootcss.com/axios/0.18.0/axios.js"></script>
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
    <script src="https://cdn.bootcss.com/element-ui/2.3.2/index.js"></script>
    <script>
        if (!window.jQuery) {
            document.write('<script src="/js/jquery.js"><\/script>')
        }
        if (!window._){
            document.write('<script src="/js/lodash.js"><\/script>')
        }
        if (!window.Vue){
            document.write('<script src="/js/vue.js"><\/script>')
        }
        if (!window.axios){
            document.write('<script src="/js/axios.js"><\/script>')
        }
    </script>
    <script>
        if (window.Vue && !window.Vue.prototype.$ELEMENT) {
            document.write('<script src="/js/element-ui.js"><\/script>')
        }
    </script>
    <script src="{{ asset('js/manifest.js') }}"></script>
    <script src="{{ asset('js/vendor.js') }}"></script>
    <script src="{{ asset('js/app.js') }}"></script>
</body>
</html>
